package com.morizhang.merchanmanager.api.dao;

import com.morizhang.merchanmanager.api.model.WarehouseShelfModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WarehouseShelfInfoDao {
    List<WarehouseShelfModel> selectAllWarehouse();
    WarehouseShelfModel queryWarehouseInfo(String warehouseName);
    int queryWarehouseNum();
    void addWarehouseInfo(WarehouseShelfModel warehouseModel);
    void deleteWarehouseInfo(String warehouseName);
    void updateWarehouseInfo(WarehouseShelfModel warehouseModel);

    List<WarehouseShelfModel> selectAllWarehouseSection(String warehouseNo);
    WarehouseShelfModel queryWarehouseSectionInfo(String warehouseSectionNo);
    void addWarehouseSectionInfo(WarehouseShelfModel warehouseSectionModel);
    void deleteWarehouseSectionInfo(String warehouseSectionNo);
    void updateWarehouseSectionInfo(WarehouseShelfModel warehouseSectionModel);

    List<WarehouseShelfModel> selectAllWarehouseShelf(String warehouseSectionNo);
    WarehouseShelfModel queryWarehouseShelfInfo(String warehouseName);
    void addWarehouseShelfInfo(WarehouseShelfModel warehouseShelfModel);
    void deleteWarehouseShelfInfo(String warehouseShelfNo);
    void updateWarehouseShelfInfo(WarehouseShelfModel warehouseShelfModel);
}
